using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;

namespace SimpleFramework
{
    public class RequestGetCommand : RequestCommand
    {
        public readonly static SimplePool<RequestGetCommand> POOL = new SimplePool<RequestGetCommand>();

        protected override UnityWebRequest CreateRequest()
        {
            return UnityWebRequest.Get(m_Url);
        }

        protected override void Recycle()
        {
            POOL.UnSpawn(this);
        }
    }
}
